<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('科目名称')}:</label>
        <div class="col-xs-12 col-sm-8">

	    <select id="c-subject_id" data-rule="required" class="form-control selectpicker" name="row[subject_id]">
                {foreach $list as $vo}
                <option value="{$vo.id}" data-category="{$vo['category_id']}">{$vo.subject_name}</option>
                {/foreach}
            </select>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('套餐名称')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-meal_name" data-rule="required" class="form-control" name="row[meal_name]" type="text">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('简介')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-meal_desc" data-rule="required" class="form-control" name="row[meal_desc]" type="text">
        </div>
    </div>
	
	<div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('视频')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-video_ids" data-rule="" data-field="video_name" data-source="video/index" data-multiple="true" class="form-control selectpage" name="row[video_ids]" type="text" value="">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('班次')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-package_ids" data-rule="required" data-field="package_name" data-source="package/index" data-multiple="true" class="form-control selectpage" name="row[package_ids]" type="text" value="">
        </div>
    </div>
	<div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('套餐信息')}:</label>
        <div class="col-xs-12 col-sm-8">

            <dl class="fieldlist" data-name="row[content_json]">
                <dd>
                    <ins>{:__('名字')}</ins>
                    <ins>{:__('内容')}</ins>
                </dd>
                <dd><a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> {:__('Append')}</a></dd>
                <textarea name="row[content_json]" class="form-control hide" cols="30" rows="5"></textarea>
            </dl>


        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">是否显示:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[status]', ['1'=>__('Yes'), '0'=>__('No')])}
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('排序')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-weigh" class="form-control" name="row[weigh]" type="number" value="10" placeholder="按升序排列">
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
